package org.rk.core.user.user;

import java.sql.Timestamp;

import javax.validation.constraints.NotNull;

import org.rk.core.common.anno.FieldMeta;
import org.rk.core.common.anno.TableMeta;
import org.rk.core.common.bean.BaseBean;


@TableMeta(name = "core_user", catalog = "rk_user_manage")
public class CoreUser extends BaseBean{

	private static final long serialVersionUID = 1L;
	@NotNull
	@FieldMeta(isUnique=true,name="userNum",length=50,desc="会员号，唯一索引")
	private String userNum;
	@NotNull
	@FieldMeta(name="userName",length=50,desc="")
	private String userName;
	@NotNull
	@FieldMeta(name="password",length=65,desc="")
	private String password;
	@NotNull
	@FieldMeta(name="salt",length=50,desc="")
	private String salt;
	@NotNull
	@FieldMeta(name="email",length=50,desc="")
	private String email;
	@NotNull
	@FieldMeta(name="mobilephone",length=15,desc="")
	private String mobilephone;
	@NotNull
	@FieldMeta(name="isActive",length=2,desc="")
	private String isActive;
	@NotNull
	@FieldMeta(name="registerTime",length=19,desc="")
	private Timestamp registerTime;
	@NotNull
	@FieldMeta(name="activeTime",length=19,desc="")
	private Timestamp activeTime;
	@NotNull
	@FieldMeta(name="fromDomain",length=20,desc="")
	private long fromDomain;
	@NotNull
	@FieldMeta(name="userType",length=20,desc="")
	private String userType;
	@FieldMeta(name="fromThirdUser",length=20,desc="来自第三方平台的用户，第三方平台名称")
	private String fromThirdUser;

	public void setUserName(String userName){
		this.userName=userName;
	}

	public String getUserName(){
		return userName;
	}

	public void setPassword(String password){
		this.password=password;
	}

	public String getPassword(){
		return password;
	}

	public void setSalt(String salt){
		this.salt=salt;
	}

	public String getSalt(){
		return salt;
	}

	public void setEmail(String email){
		this.email=email;
	}

	public String getEmail(){
		return email;
	}

	public void setMobilephone(String mobilephone){
		this.mobilephone=mobilephone;
	}

	public String getMobilephone(){
		return mobilephone;
	}

	public void setIsActive(String isActive){
		this.isActive=isActive;
	}

	public String getIsActive(){
		return isActive;
	}

	public void setRegisterTime(Timestamp registerTime){
		this.registerTime=registerTime;
	}

	public Timestamp getRegisterTime(){
		return registerTime;
	}

	public void setActiveTime(Timestamp activeTime){
		this.activeTime=activeTime;
	}

	public Timestamp getActiveTime(){
		return activeTime;
	}

	public void setFromDomain(long fromDomain){
		this.fromDomain=fromDomain;
	}

	public long getFromDomain(){
		return fromDomain;
	}

	public void setUserType(String userType){
		this.userType=userType;
	}

	public String getUserType(){
		return userType;
	}

	public String getFromThirdUser() {
		return fromThirdUser;
	}

	public void setFromThirdUser(String fromThirdUser) {
		this.fromThirdUser = fromThirdUser;
	}

	public String getUserNum() {
		return userNum;
	}

	public void setUserNum(String userNum) {
		this.userNum = userNum;
	}

}
